<template>
	<div>
		<el-container>
			<el-aside width="200px" router>
				<el-row class="tac">
					<el-col :span="12">
						<el-menu default-active="/订单-管理" class="el-menu-vertical-demo" @select="handleSelect">
							<el-menu-item index="/订单-管理">
								<span slot="title">订单管理</span>
							</el-menu-item>
							<el-menu-item index="/订单-发票">
								<span slot="title">发票管理</span>
							</el-menu-item>
							<el-menu-item index="/订单-售后">
								<span slot="title">售后服务</span>
							</el-menu-item>
						</el-menu>
					</el-col>
				</el-row>
			</el-aside>
			<el-main>
				<router-view></router-view>
			</el-main>
		</el-container>
	</div>
</template>

<script>
	export default {
		methods:{
			handleSelect(key, keyPath) {
				console.log(key);
				this.$router.push(key)
			}
		}
	}
</script>

<style scoped>
	
</style>
